{subtemplate jameson_read:qidian/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div class="uk-grid-collapse" uk-grid>
	<div class="uk-width-medium shaixuancon">
		<div class="uk-padding-small back-box">
		<h4 class="xs3">{lang jameson_read:fenlei}</h4>
		<div>
			<a class="catelink {if !isset($_GET['category_id']) || ($_GET['category_id']=='empty')}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'category_id','empty');}">{lang jameson_read:quanbu}</a>
			{loop $categorys $rootkey $category}
				<div class="uk-heading-bullet uk-border-b mtm"><a class="catelink {if $_GET['category_id']==$category['category_id']}active{/if}"  href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'category_id',$category['category_id']);}">{$category['category_name']}</a></div>
				{loop $category['sub'] $subkey $sub}
					<a class="catelink {if $_GET['category_id']==$sub['category_id']}active{/if}"  href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'category_id',$sub['category_id']);}">{$sub['category_name']}</a>
				{/loop}
			{/loop}
		</div>
		<hr class="uk-hr">
		<h4 class="xs3">{lang jameson_read:zhuangtai}</h4>
		<div>
			<a class="catelink  {if !isset($_GET['plan'])||($_GET['plan']=='empty')}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan','empty');}">{lang jameson_read:quanbu}</a>
			<a class="catelink {if isset($_GET['plan']) && !$_GET['plan']}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan',0);}">{lang jameson_read:lianzaizhong}</a>
			<a class="catelink {if $_GET['plan']==1}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'plan',1);}">{lang jameson_read:yiwanjie}</a>
		</div>
		<hr class="uk-hr">
		<h4 class="xs3">{lang jameson_read:zishu}</h4>
		<div class="">
			<a class="catelink  {if !isset($_GET['zishu'])||($_GET['zishu']=='empty')}active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu','empty');}">{lang jameson_read:quanbu}</a>
			<a class="catelink {if intval($_GET['zishu'] == 1000000) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',1000000);}">{lang jameson_read:zishuduan1}</a>
			<a class="catelink {if intval($_GET['zishu'] == 5000000) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',5000000);}">{lang jameson_read:zishuduan2}</a>
			<a class="catelink {if intval($_GET['zishu'] == 10000000) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',10000000);}">{lang jameson_read:zishuduan3}</a>
			<a class="catelink {if intval($_GET['zishu'] == 10000001) }active{/if}" href="{eval echo jamesonurl('shaixuan',$_SERVER['REQUEST_URI'],'zishu',10000001);}">{lang jameson_read:zishuduan4}</a>
		</div>
		<hr class="uk-hr">
		{if $_G['jameson_read']['shuxinglist']}
			<h4 class="xs3">{lang jameson_read:tuijianbiaoqian}</h4>
			<div class="">
				{loop $_G['jameson_read']['shuxinglist'] $tag}
					<a href="./plugin.php?id=jameson_read&contrl=index&act=tag&tag={$tag}" class="uk-badge">{$tag}</a>
				{/loop}
			</div>
		{/if}
		{if $adv[0]['adv']}
		<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
			{eval echo stripcslashes($adv[0]['adv']);}
		</div>
		{/if}
		</div>
	</div>
	<div class="uk-width-expand">
		<div class="uk-padding back-box uk-margin-left">
			{if $books}
			<h4 class="uk-heading-divider">
				{lang jameson_read:xuandingtiaojian} 
				<strong class="uk-text-danger">{$counts}</strong>
			</h4>
			{/if}
			{if $books}
				<div class="uk-grid-collapse uk-child-width-1-2 shaixuanbooklist zqy_1" uk-grid>
					{loop $books $key $book}
						<div class="cl uk-margin-top">
							<div class="book-img z">
			                    <a href="{eval echo jamesonurl('book',$book['book_id']);}">
			                        <img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
			                    </a>
			                </div>
			                <div class="book-info">
                                <h4><a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a></h4>
                                <a class="xg1 xs1 xw0" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
                                <div class="tag512">
	                                <span class="org">{$book['category_name']}</span>
	                                <span class="green">{if $book['plan']}{lang jameson_read:yiwanjie}{else}{lang jameson_read:lianzaizhong}{/if}</span>
	                                <span class="blue">{eval echo dnumber($book['views']);}</span>
                                </div>
                                <p class="desco">
                                       {$book['desco']}
                                </p>
                            </div>
						</div>
					{/loop}
				</div>
			{else}
				<div class="uk-alert-danger uk-padding" uk-alert>{lang jameson_read:meizhaodaoxiangguantushu}</div>
			{/if}
		</div>
		<div class="uk-margin-top cl">{$pageshow}</div>
	</div>
</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->

{subtemplate jameson_read:qidian/read_footer}